﻿using System;
using System.ComponentModel.Composition;

namespace NDBGen.Descriptors.Columns
{
    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public abstract class ColumnMetadataAttribute : ExportAttribute
    {
        public ColumnMetadataAttribute(Type contractType, DataType dataTypes)
            : base(contractType)
        {
            this.DataTypes = dataTypes;
        }

        public DataType DataTypes { get; protected set; }
    }
}